package managedBean;

import java.util.Comparator;

import entity.Paciente;
public class PacienteComparator implements Comparator {
	public int compare(Object o1, Object o2)
	{
		Paciente ob1 = (Paciente) o1;
		Paciente ob2 = (Paciente) o2;
		return (ob1.getNomePaciente().compareTo(ob2.getNomePaciente()));
	}
	
}
